package coder.nav.model.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class NavPageBO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("标题")
    @NotBlank(message = "请输入标题")
    private String title;

    @ApiModelProperty("链接")
    @NotBlank(message = "请输入链接")
    private String url;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("内容")
    private String context;

}
